package com.ecoolex.chinadutyfree.retailer.entity;

import com.ecoolex.framework.common.annotation.Description;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.springframework.lang.NonNull;

public class CouponClassExpireStrategyExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer offset;

    protected Integer rows;

    public CouponClassExpireStrategyExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public CouponClassExpireStrategyExample orderBy(String orderByClause) {
        this.setOrderByClause(orderByClause);
        return this;
    }

    public CouponClassExpireStrategyExample orderBy(String ... orderByClauses) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < orderByClauses.length; i++) {
            sb.append(orderByClauses[i]);
            if (i < orderByClauses.length - 1) {
                sb.append(" , ");
            }
        }
        this.setOrderByClause(sb.toString());
        return this;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria(this);
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
        rows = null;
        offset = null;
    }

    public static Criteria newAndCreateCriteria() {
        CouponClassExpireStrategyExample example = new CouponClassExpireStrategyExample();
        return example.createCriteria();
    }

    public CouponClassExpireStrategyExample when(boolean condition, IExampleWhen then) {
        if (condition) {
            then.example(this);
        }
        return this;
    }

    public CouponClassExpireStrategyExample when(boolean condition, IExampleWhen then, IExampleWhen otherwise) {
        if (condition) {
            then.example(this);
        } else {
            otherwise.example(this);
        }
        return this;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return this.offset;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public Integer getRows() {
        return this.rows;
    }

    public CouponClassExpireStrategyExample limit(Integer rows) {
        this.rows = rows;
        return this;
    }

    public CouponClassExpireStrategyExample limit(Integer offset, Integer rows) {
        this.offset = offset;
        this.rows = rows;
        return this;
    }

    public CouponClassExpireStrategyExample page(Integer page, Integer pageSize) {
        this.offset = page * pageSize;
        this.rows = pageSize;
        return this;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCouponClassIdIsNull() {
            addCriterion("couponclassexpirestrategy.CouponClassId is null");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdIsNotNull() {
            addCriterion("couponclassexpirestrategy.CouponClassId is not null");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdEqualTo(Integer value) {
            addCriterion("couponclassexpirestrategy.CouponClassId =", value, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.CouponClassId = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponClassIdNotEqualTo(Integer value) {
            addCriterion("couponclassexpirestrategy.CouponClassId <>", value, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdNotEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.CouponClassId <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponClassIdGreaterThan(Integer value) {
            addCriterion("couponclassexpirestrategy.CouponClassId >", value, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdGreaterThanColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.CouponClassId > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponClassIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("couponclassexpirestrategy.CouponClassId >=", value, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdGreaterThanOrEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.CouponClassId >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponClassIdLessThan(Integer value) {
            addCriterion("couponclassexpirestrategy.CouponClassId <", value, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdLessThanColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.CouponClassId < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponClassIdLessThanOrEqualTo(Integer value) {
            addCriterion("couponclassexpirestrategy.CouponClassId <=", value, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdLessThanOrEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.CouponClassId <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCouponClassIdIn(List<Integer> values) {
            addCriterion("couponclassexpirestrategy.CouponClassId in", values, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdNotIn(List<Integer> values) {
            addCriterion("couponclassexpirestrategy.CouponClassId not in", values, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdBetween(Integer value1, Integer value2) {
            addCriterion("couponclassexpirestrategy.CouponClassId between", value1, value2, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andCouponClassIdNotBetween(Integer value1, Integer value2) {
            addCriterion("couponclassexpirestrategy.CouponClassId not between", value1, value2, "couponClassId");
            return (Criteria) this;
        }

        public Criteria andExpiryStrategyIsNull() {
            addCriterion("couponclassexpirestrategy.ExpiryStrategy is null");
            return (Criteria) this;
        }

        public Criteria andExpiryStrategyIsNotNull() {
            addCriterion("couponclassexpirestrategy.ExpiryStrategy is not null");
            return (Criteria) this;
        }

        public Criteria andExpiryStrategyEqualTo(Integer value) {
            addCriterion("couponclassexpirestrategy.ExpiryStrategy =", value, "expiryStrategy");
            return (Criteria) this;
        }

        public Criteria andExpiryStrategyEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.ExpiryStrategy = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpiryStrategyNotEqualTo(Integer value) {
            addCriterion("couponclassexpirestrategy.ExpiryStrategy <>", value, "expiryStrategy");
            return (Criteria) this;
        }

        public Criteria andExpiryStrategyNotEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.ExpiryStrategy <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpiryStrategyGreaterThan(Integer value) {
            addCriterion("couponclassexpirestrategy.ExpiryStrategy >", value, "expiryStrategy");
            return (Criteria) this;
        }

        public Criteria andExpiryStrategyGreaterThanColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.ExpiryStrategy > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpiryStrategyGreaterThanOrEqualTo(Integer value) {
            addCriterion("couponclassexpirestrategy.ExpiryStrategy >=", value, "expiryStrategy");
            return (Criteria) this;
        }

        public Criteria andExpiryStrategyGreaterThanOrEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.ExpiryStrategy >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpiryStrategyLessThan(Integer value) {
            addCriterion("couponclassexpirestrategy.ExpiryStrategy <", value, "expiryStrategy");
            return (Criteria) this;
        }

        public Criteria andExpiryStrategyLessThanColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.ExpiryStrategy < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpiryStrategyLessThanOrEqualTo(Integer value) {
            addCriterion("couponclassexpirestrategy.ExpiryStrategy <=", value, "expiryStrategy");
            return (Criteria) this;
        }

        public Criteria andExpiryStrategyLessThanOrEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.ExpiryStrategy <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpiryStrategyIn(List<Integer> values) {
            addCriterion("couponclassexpirestrategy.ExpiryStrategy in", values, "expiryStrategy");
            return (Criteria) this;
        }

        public Criteria andExpiryStrategyNotIn(List<Integer> values) {
            addCriterion("couponclassexpirestrategy.ExpiryStrategy not in", values, "expiryStrategy");
            return (Criteria) this;
        }

        public Criteria andExpiryStrategyBetween(Integer value1, Integer value2) {
            addCriterion("couponclassexpirestrategy.ExpiryStrategy between", value1, value2, "expiryStrategy");
            return (Criteria) this;
        }

        public Criteria andExpiryStrategyNotBetween(Integer value1, Integer value2) {
            addCriterion("couponclassexpirestrategy.ExpiryStrategy not between", value1, value2, "expiryStrategy");
            return (Criteria) this;
        }

        public Criteria andAbsoluteStartTimeIsNull() {
            addCriterion("couponclassexpirestrategy.AbsoluteStartTime is null");
            return (Criteria) this;
        }

        public Criteria andAbsoluteStartTimeIsNotNull() {
            addCriterion("couponclassexpirestrategy.AbsoluteStartTime is not null");
            return (Criteria) this;
        }

        public Criteria andAbsoluteStartTimeEqualTo(Date value) {
            addCriterion("couponclassexpirestrategy.AbsoluteStartTime =", value, "absoluteStartTime");
            return (Criteria) this;
        }

        public Criteria andAbsoluteStartTimeEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.AbsoluteStartTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAbsoluteStartTimeNotEqualTo(Date value) {
            addCriterion("couponclassexpirestrategy.AbsoluteStartTime <>", value, "absoluteStartTime");
            return (Criteria) this;
        }

        public Criteria andAbsoluteStartTimeNotEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.AbsoluteStartTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAbsoluteStartTimeGreaterThan(Date value) {
            addCriterion("couponclassexpirestrategy.AbsoluteStartTime >", value, "absoluteStartTime");
            return (Criteria) this;
        }

        public Criteria andAbsoluteStartTimeGreaterThanColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.AbsoluteStartTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAbsoluteStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("couponclassexpirestrategy.AbsoluteStartTime >=", value, "absoluteStartTime");
            return (Criteria) this;
        }

        public Criteria andAbsoluteStartTimeGreaterThanOrEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.AbsoluteStartTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAbsoluteStartTimeLessThan(Date value) {
            addCriterion("couponclassexpirestrategy.AbsoluteStartTime <", value, "absoluteStartTime");
            return (Criteria) this;
        }

        public Criteria andAbsoluteStartTimeLessThanColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.AbsoluteStartTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAbsoluteStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("couponclassexpirestrategy.AbsoluteStartTime <=", value, "absoluteStartTime");
            return (Criteria) this;
        }

        public Criteria andAbsoluteStartTimeLessThanOrEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.AbsoluteStartTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAbsoluteStartTimeIn(List<Date> values) {
            addCriterion("couponclassexpirestrategy.AbsoluteStartTime in", values, "absoluteStartTime");
            return (Criteria) this;
        }

        public Criteria andAbsoluteStartTimeNotIn(List<Date> values) {
            addCriterion("couponclassexpirestrategy.AbsoluteStartTime not in", values, "absoluteStartTime");
            return (Criteria) this;
        }

        public Criteria andAbsoluteStartTimeBetween(Date value1, Date value2) {
            addCriterion("couponclassexpirestrategy.AbsoluteStartTime between", value1, value2, "absoluteStartTime");
            return (Criteria) this;
        }

        public Criteria andAbsoluteStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("couponclassexpirestrategy.AbsoluteStartTime not between", value1, value2, "absoluteStartTime");
            return (Criteria) this;
        }

        public Criteria andAbsoluteEndTimeIsNull() {
            addCriterion("couponclassexpirestrategy.AbsoluteEndTime is null");
            return (Criteria) this;
        }

        public Criteria andAbsoluteEndTimeIsNotNull() {
            addCriterion("couponclassexpirestrategy.AbsoluteEndTime is not null");
            return (Criteria) this;
        }

        public Criteria andAbsoluteEndTimeEqualTo(Date value) {
            addCriterion("couponclassexpirestrategy.AbsoluteEndTime =", value, "absoluteEndTime");
            return (Criteria) this;
        }

        public Criteria andAbsoluteEndTimeEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.AbsoluteEndTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAbsoluteEndTimeNotEqualTo(Date value) {
            addCriterion("couponclassexpirestrategy.AbsoluteEndTime <>", value, "absoluteEndTime");
            return (Criteria) this;
        }

        public Criteria andAbsoluteEndTimeNotEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.AbsoluteEndTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAbsoluteEndTimeGreaterThan(Date value) {
            addCriterion("couponclassexpirestrategy.AbsoluteEndTime >", value, "absoluteEndTime");
            return (Criteria) this;
        }

        public Criteria andAbsoluteEndTimeGreaterThanColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.AbsoluteEndTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAbsoluteEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("couponclassexpirestrategy.AbsoluteEndTime >=", value, "absoluteEndTime");
            return (Criteria) this;
        }

        public Criteria andAbsoluteEndTimeGreaterThanOrEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.AbsoluteEndTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAbsoluteEndTimeLessThan(Date value) {
            addCriterion("couponclassexpirestrategy.AbsoluteEndTime <", value, "absoluteEndTime");
            return (Criteria) this;
        }

        public Criteria andAbsoluteEndTimeLessThanColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.AbsoluteEndTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAbsoluteEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("couponclassexpirestrategy.AbsoluteEndTime <=", value, "absoluteEndTime");
            return (Criteria) this;
        }

        public Criteria andAbsoluteEndTimeLessThanOrEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.AbsoluteEndTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andAbsoluteEndTimeIn(List<Date> values) {
            addCriterion("couponclassexpirestrategy.AbsoluteEndTime in", values, "absoluteEndTime");
            return (Criteria) this;
        }

        public Criteria andAbsoluteEndTimeNotIn(List<Date> values) {
            addCriterion("couponclassexpirestrategy.AbsoluteEndTime not in", values, "absoluteEndTime");
            return (Criteria) this;
        }

        public Criteria andAbsoluteEndTimeBetween(Date value1, Date value2) {
            addCriterion("couponclassexpirestrategy.AbsoluteEndTime between", value1, value2, "absoluteEndTime");
            return (Criteria) this;
        }

        public Criteria andAbsoluteEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("couponclassexpirestrategy.AbsoluteEndTime not between", value1, value2, "absoluteEndTime");
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryTypeIsNull() {
            addCriterion("couponclassexpirestrategy.RelativeExpiryType is null");
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryTypeIsNotNull() {
            addCriterion("couponclassexpirestrategy.RelativeExpiryType is not null");
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryTypeEqualTo(Integer value) {
            addCriterion("couponclassexpirestrategy.RelativeExpiryType =", value, "relativeExpiryType");
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryTypeEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.RelativeExpiryType = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryTypeNotEqualTo(Integer value) {
            addCriterion("couponclassexpirestrategy.RelativeExpiryType <>", value, "relativeExpiryType");
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryTypeNotEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.RelativeExpiryType <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryTypeGreaterThan(Integer value) {
            addCriterion("couponclassexpirestrategy.RelativeExpiryType >", value, "relativeExpiryType");
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryTypeGreaterThanColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.RelativeExpiryType > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("couponclassexpirestrategy.RelativeExpiryType >=", value, "relativeExpiryType");
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryTypeGreaterThanOrEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.RelativeExpiryType >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryTypeLessThan(Integer value) {
            addCriterion("couponclassexpirestrategy.RelativeExpiryType <", value, "relativeExpiryType");
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryTypeLessThanColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.RelativeExpiryType < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryTypeLessThanOrEqualTo(Integer value) {
            addCriterion("couponclassexpirestrategy.RelativeExpiryType <=", value, "relativeExpiryType");
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryTypeLessThanOrEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.RelativeExpiryType <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryTypeIn(List<Integer> values) {
            addCriterion("couponclassexpirestrategy.RelativeExpiryType in", values, "relativeExpiryType");
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryTypeNotIn(List<Integer> values) {
            addCriterion("couponclassexpirestrategy.RelativeExpiryType not in", values, "relativeExpiryType");
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryTypeBetween(Integer value1, Integer value2) {
            addCriterion("couponclassexpirestrategy.RelativeExpiryType between", value1, value2, "relativeExpiryType");
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("couponclassexpirestrategy.RelativeExpiryType not between", value1, value2, "relativeExpiryType");
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryValueIsNull() {
            addCriterion("couponclassexpirestrategy.RelativeExpiryValue is null");
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryValueIsNotNull() {
            addCriterion("couponclassexpirestrategy.RelativeExpiryValue is not null");
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryValueEqualTo(Integer value) {
            addCriterion("couponclassexpirestrategy.RelativeExpiryValue =", value, "relativeExpiryValue");
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryValueEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.RelativeExpiryValue = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryValueNotEqualTo(Integer value) {
            addCriterion("couponclassexpirestrategy.RelativeExpiryValue <>", value, "relativeExpiryValue");
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryValueNotEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.RelativeExpiryValue <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryValueGreaterThan(Integer value) {
            addCriterion("couponclassexpirestrategy.RelativeExpiryValue >", value, "relativeExpiryValue");
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryValueGreaterThanColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.RelativeExpiryValue > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryValueGreaterThanOrEqualTo(Integer value) {
            addCriterion("couponclassexpirestrategy.RelativeExpiryValue >=", value, "relativeExpiryValue");
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryValueGreaterThanOrEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.RelativeExpiryValue >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryValueLessThan(Integer value) {
            addCriterion("couponclassexpirestrategy.RelativeExpiryValue <", value, "relativeExpiryValue");
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryValueLessThanColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.RelativeExpiryValue < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryValueLessThanOrEqualTo(Integer value) {
            addCriterion("couponclassexpirestrategy.RelativeExpiryValue <=", value, "relativeExpiryValue");
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryValueLessThanOrEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.RelativeExpiryValue <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryValueIn(List<Integer> values) {
            addCriterion("couponclassexpirestrategy.RelativeExpiryValue in", values, "relativeExpiryValue");
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryValueNotIn(List<Integer> values) {
            addCriterion("couponclassexpirestrategy.RelativeExpiryValue not in", values, "relativeExpiryValue");
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryValueBetween(Integer value1, Integer value2) {
            addCriterion("couponclassexpirestrategy.RelativeExpiryValue between", value1, value2, "relativeExpiryValue");
            return (Criteria) this;
        }

        public Criteria andRelativeExpiryValueNotBetween(Integer value1, Integer value2) {
            addCriterion("couponclassexpirestrategy.RelativeExpiryValue not between", value1, value2, "relativeExpiryValue");
            return (Criteria) this;
        }

        public Criteria andExpireDescriptionIsNull() {
            addCriterion("couponclassexpirestrategy.ExpireDescription is null");
            return (Criteria) this;
        }

        public Criteria andExpireDescriptionIsNotNull() {
            addCriterion("couponclassexpirestrategy.ExpireDescription is not null");
            return (Criteria) this;
        }

        public Criteria andExpireDescriptionEqualTo(String value) {
            addCriterion("couponclassexpirestrategy.ExpireDescription =", value, "expireDescription");
            return (Criteria) this;
        }

        public Criteria andExpireDescriptionEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.ExpireDescription = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpireDescriptionNotEqualTo(String value) {
            addCriterion("couponclassexpirestrategy.ExpireDescription <>", value, "expireDescription");
            return (Criteria) this;
        }

        public Criteria andExpireDescriptionNotEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.ExpireDescription <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpireDescriptionGreaterThan(String value) {
            addCriterion("couponclassexpirestrategy.ExpireDescription >", value, "expireDescription");
            return (Criteria) this;
        }

        public Criteria andExpireDescriptionGreaterThanColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.ExpireDescription > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpireDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("couponclassexpirestrategy.ExpireDescription >=", value, "expireDescription");
            return (Criteria) this;
        }

        public Criteria andExpireDescriptionGreaterThanOrEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.ExpireDescription >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpireDescriptionLessThan(String value) {
            addCriterion("couponclassexpirestrategy.ExpireDescription <", value, "expireDescription");
            return (Criteria) this;
        }

        public Criteria andExpireDescriptionLessThanColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.ExpireDescription < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpireDescriptionLessThanOrEqualTo(String value) {
            addCriterion("couponclassexpirestrategy.ExpireDescription <=", value, "expireDescription");
            return (Criteria) this;
        }

        public Criteria andExpireDescriptionLessThanOrEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.ExpireDescription <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andExpireDescriptionLike(String value) {
            addCriterion("couponclassexpirestrategy.ExpireDescription like", value, "expireDescription");
            return (Criteria) this;
        }

        public Criteria andExpireDescriptionNotLike(String value) {
            addCriterion("couponclassexpirestrategy.ExpireDescription not like", value, "expireDescription");
            return (Criteria) this;
        }

        public Criteria andExpireDescriptionIn(List<String> values) {
            addCriterion("couponclassexpirestrategy.ExpireDescription in", values, "expireDescription");
            return (Criteria) this;
        }

        public Criteria andExpireDescriptionNotIn(List<String> values) {
            addCriterion("couponclassexpirestrategy.ExpireDescription not in", values, "expireDescription");
            return (Criteria) this;
        }

        public Criteria andExpireDescriptionBetween(String value1, String value2) {
            addCriterion("couponclassexpirestrategy.ExpireDescription between", value1, value2, "expireDescription");
            return (Criteria) this;
        }

        public Criteria andExpireDescriptionNotBetween(String value1, String value2) {
            addCriterion("couponclassexpirestrategy.ExpireDescription not between", value1, value2, "expireDescription");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("couponclassexpirestrategy.Deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("couponclassexpirestrategy.Deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Boolean value) {
            addCriterion("couponclassexpirestrategy.Deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.Deleted = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Boolean value) {
            addCriterion("couponclassexpirestrategy.Deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.Deleted <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Boolean value) {
            addCriterion("couponclassexpirestrategy.Deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.Deleted > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Boolean value) {
            addCriterion("couponclassexpirestrategy.Deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.Deleted >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Boolean value) {
            addCriterion("couponclassexpirestrategy.Deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.Deleted < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Boolean value) {
            addCriterion("couponclassexpirestrategy.Deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.Deleted <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Boolean> values) {
            addCriterion("couponclassexpirestrategy.Deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Boolean> values) {
            addCriterion("couponclassexpirestrategy.Deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Boolean value1, Boolean value2) {
            addCriterion("couponclassexpirestrategy.Deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Boolean value1, Boolean value2) {
            addCriterion("couponclassexpirestrategy.Deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNull() {
            addCriterion("couponclassexpirestrategy.`CreateUser` is null");
            return (Criteria) this;
        }

        public Criteria andCreateUserIsNotNull() {
            addCriterion("couponclassexpirestrategy.`CreateUser` is not null");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualTo(String value) {
            addCriterion("couponclassexpirestrategy.`CreateUser` =", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.`CreateUser` = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualTo(String value) {
            addCriterion("couponclassexpirestrategy.`CreateUser` <>", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.`CreateUser` <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThan(String value) {
            addCriterion("couponclassexpirestrategy.`CreateUser` >", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.`CreateUser` > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualTo(String value) {
            addCriterion("couponclassexpirestrategy.`CreateUser` >=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserGreaterThanOrEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.`CreateUser` >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThan(String value) {
            addCriterion("couponclassexpirestrategy.`CreateUser` <", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.`CreateUser` < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualTo(String value) {
            addCriterion("couponclassexpirestrategy.`CreateUser` <=", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserLessThanOrEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.`CreateUser` <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateUserLike(String value) {
            addCriterion("couponclassexpirestrategy.`CreateUser` like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotLike(String value) {
            addCriterion("couponclassexpirestrategy.`CreateUser` not like", value, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserIn(List<String> values) {
            addCriterion("couponclassexpirestrategy.`CreateUser` in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotIn(List<String> values) {
            addCriterion("couponclassexpirestrategy.`CreateUser` not in", values, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserBetween(String value1, String value2) {
            addCriterion("couponclassexpirestrategy.`CreateUser` between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateUserNotBetween(String value1, String value2) {
            addCriterion("couponclassexpirestrategy.`CreateUser` not between", value1, value2, "createUser");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("couponclassexpirestrategy.CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("couponclassexpirestrategy.CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("couponclassexpirestrategy.CreateTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.CreateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("couponclassexpirestrategy.CreateTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.CreateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("couponclassexpirestrategy.CreateTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.CreateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("couponclassexpirestrategy.CreateTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.CreateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("couponclassexpirestrategy.CreateTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.CreateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("couponclassexpirestrategy.CreateTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.CreateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("couponclassexpirestrategy.CreateTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("couponclassexpirestrategy.CreateTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("couponclassexpirestrategy.CreateTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("couponclassexpirestrategy.CreateTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNull() {
            addCriterion("couponclassexpirestrategy.UpdateUser is null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIsNotNull() {
            addCriterion("couponclassexpirestrategy.UpdateUser is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualTo(String value) {
            addCriterion("couponclassexpirestrategy.UpdateUser =", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.UpdateUser = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualTo(String value) {
            addCriterion("couponclassexpirestrategy.UpdateUser <>", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.UpdateUser <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThan(String value) {
            addCriterion("couponclassexpirestrategy.UpdateUser >", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.UpdateUser > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualTo(String value) {
            addCriterion("couponclassexpirestrategy.UpdateUser >=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserGreaterThanOrEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.UpdateUser >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThan(String value) {
            addCriterion("couponclassexpirestrategy.UpdateUser <", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.UpdateUser < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualTo(String value) {
            addCriterion("couponclassexpirestrategy.UpdateUser <=", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserLessThanOrEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.UpdateUser <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateUserLike(String value) {
            addCriterion("couponclassexpirestrategy.UpdateUser like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotLike(String value) {
            addCriterion("couponclassexpirestrategy.UpdateUser not like", value, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserIn(List<String> values) {
            addCriterion("couponclassexpirestrategy.UpdateUser in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotIn(List<String> values) {
            addCriterion("couponclassexpirestrategy.UpdateUser not in", values, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserBetween(String value1, String value2) {
            addCriterion("couponclassexpirestrategy.UpdateUser between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateUserNotBetween(String value1, String value2) {
            addCriterion("couponclassexpirestrategy.UpdateUser not between", value1, value2, "updateUser");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("couponclassexpirestrategy.UpdateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("couponclassexpirestrategy.UpdateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("couponclassexpirestrategy.UpdateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.UpdateTime = ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("couponclassexpirestrategy.UpdateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.UpdateTime <> ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("couponclassexpirestrategy.UpdateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.UpdateTime > ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("couponclassexpirestrategy.UpdateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.UpdateTime >= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("couponclassexpirestrategy.UpdateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.UpdateTime < ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("couponclassexpirestrategy.UpdateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualToColumn(CouponClassExpireStrategy.Column column) {
            addCriterion(new StringBuilder("couponclassexpirestrategy.UpdateTime <= ").append(column.getEscapedColumnName()).toString());
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("couponclassexpirestrategy.UpdateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("couponclassexpirestrategy.UpdateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("couponclassexpirestrategy.UpdateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("couponclassexpirestrategy.UpdateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        private CouponClassExpireStrategyExample example;

        protected Criteria(CouponClassExpireStrategyExample example) {
            super();
            this.example = example;
        }

        public CouponClassExpireStrategyExample example() {
            return this.example;
        }

        @Deprecated
        public Criteria andIf(boolean ifAdd, ICriteriaAdd add) {
            if (ifAdd) {
                add.add(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then) {
            if (condition) {
                then.criteria(this);
            }
            return this;
        }

        public Criteria when(boolean condition, ICriteriaWhen then, ICriteriaWhen otherwise) {
            if (condition) {
                then.criteria(this);
            } else {
                otherwise.criteria(this);
            }
            return this;
        }

        public Criteria andLogicalDeleted(boolean deleted) {
            return deleted ? andDeletedEqualTo(CouponClassExpireStrategy.Deleted.IS_DELETED.value()) : andDeletedNotEqualTo(CouponClassExpireStrategy.Deleted.IS_DELETED.value());
        }

        @Deprecated
        public interface ICriteriaAdd {
            Criteria add(Criteria add);
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }

    public interface ICriteriaWhen {
        void criteria(Criteria criteria);
    }

    public interface IExampleWhen {
        void example(com.ecoolex.chinadutyfree.retailer.entity.CouponClassExpireStrategyExample example);
    }
}